package com.zmc.member.infrastructure.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

/**
 * 购物车的商品条目
 * 
 * @author zmc
 * @email 
 * @date 2024-11-04 17:58:43
 */
@Data
@TableName("ums_shopping_cart_item")
public class ShoppingCartItemEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId
	private Long id;
	/**
	 * 会员ID
	 */
	private String memberId;
	/**
	 * 商品sku ID
	 */
	private String skuId;
	/**
	 * 购买数量
	 */
	private Long purchaseQuantity;

	private String selected;
	/**
	 * 创建时间
	 */
	@TableField(value = "create_time", fill = FieldFill.INSERT)
	private LocalDateTime createTime;
	/**
	 * 更新时间
	 */
	@TableField(value = "update_time", fill = FieldFill.UPDATE)
	private LocalDateTime updateTime;

}
